package com.situ.crm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.servlet.DispatcherServlet;


// 声明该类是一个SpringBoot的引导类
@SpringBootApplication
// quartz定时任务
@EnableScheduling
//@MapperScan注解，扫描MyBatis Mapper接口类
@MapperScan("com.situ.crm.mapper")
public class MyApplication {

    //main是java程序的入口
    public static void main(String[] args) {
        //run方法表示运行SpringBoot的引导类
        SpringApplication.run(MyApplication.class);
    }

}
